import axios from "./../utils/axiosUtils"
// 获取商品类型列表
<<<<<<< HEAD
export const getShopType = (data) => axios.get("/gen/goodstype", data)
=======
export const getShopType = (data) => axios.get("/gen/goodstype",data)
>>>>>>> 4baf4dd9148ff997549c6b069115f97a7a198f40
//获得所有商品
export const getShop = (query) => axios.get(`/gen/goods?${query}`)
//新增商品
export const addShop = (data) => axios.post("/gen/goods", data)

//新增商品分类
export const addShopType = (data) => axios.post("/gen/goodstype", data)

//删除商品分类
<<<<<<< HEAD

export const delShopType = (data) => axios.delete(`gen/goodstype/${data}`)

// http://xawn.f3322.net:8012/gen/goods/${goodsId}

export const delShop = (data) => axios.delete(`gen/goods//${data}`)
=======
export const delShopType = (data) => axios.delete(`gen/goodstype/${data}`)
//修改商品分类
export const changerInf = (data)=> axios.put("/gen/goodstype",data)
//修改商品信息
export const changerShop = (data)=> axios.put("/gen/goods",data)

>>>>>>> 4baf4dd9148ff997549c6b069115f97a7a198f40
